﻿using System;
using System.ComponentModel;

using Zongsoft.ComponentModel;

namespace Dxr.Police.Models
{
    public enum RoleType
    {
        /// <summary>
        /// 普通用户
        /// </summary>
        [Alias("ordinary")]
        [Description("普通用户")]
        Ordinary = 0,

        /// <summary>
        /// 高级用户
        /// </summary>
        [Alias("senior")]
        [Description("高级用户")]
        Senior = 1,

        /// <summary>
        /// 管理用户
        /// </summary>
        [Alias("manager")]
        [Description("管理用户")]
        Manager = 2,

        /// <summary>
        /// 超级管理用户
        /// </summary>
        [Alias("SuperManager")]
        [Description("超级管理用户")]
        SuperManager = 3,

        /// <summary>
        /// 系统管理员
        /// </summary>
        [Alias("admin")]
        [Description("系统管理员")]
        Admin = 99,
    }

    public static class Role
    {
        public const string Ordinary = "Ordinary";
        public const string Senior = "Senior";
        public const string Manager = "Manager";
        public const string Admin = "Admin";
    }
}
